//
//  AddressModel.m
//  sensen_ios
//
//  Created by mc on 16/3/10.
//  Copyright © 2016年 pro. All rights reserved.
//

#import "AddressModel.h"

@implementation AddressModel

- (void)setAttributes:(NSDictionary *)jsonDic {
    
    [super setAttributes:jsonDic];
    
    _address_id = [jsonDic[@"id"] integerValue];
    
    
    if (![_city isEqualToString:@"0"]) {
        _address = [NSString stringWithFormat:@"%@%@%@%@", _province, _city, _area, _detailinfo];
        _pcaAddress = [NSString stringWithFormat:@"%@%@%@", _province, _city, _area];
    }else{
        _address = [NSString stringWithFormat:@"%@%@", _province, _detailinfo];
        _pcaAddress = [NSString stringWithFormat:@"%@", _province];
    }
    
    
}
@end
